// #ifndef VUE3
import './common/js/pc.js'
import App from './App'
import Vue from 'vue'
import './uni.promisify.adaptor'
import uView from "uview-ui";
import store from './store/index.js'
import './static/css/flex.scss'
// 引用 echarts 
import * as echarts from 'echarts';

// 全局方法挂载
Vue.prototype.$echarts = echarts;

// 引入moment.js
import moment from 'moment'
moment.locale('zh-cn') //指定语言
Vue.prototype.$moment = moment;

Vue.use(uView);

Vue.config.productionTip = false
Vue.prototype.$store = store
import tabBar from "./components/tarBar/tarBar"
import waterMark from "./components/waterMarker/waterMark"
Vue.component('tabBar', tabBar)
Vue.component('waterMark', waterMark)
App.mpType = 'app'
Vue.prototype.$EventBus = new Vue()


const app = new Vue({
	...App,
	store
})
app.$mount()


// 提交前需要注释  本地调试使用
// const vconsole = require('vconsole')
// Vue.prototype.$vconsole = new vconsole() // 使用vconsole
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif